<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8">
		<title>案例-table操作</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/new_file.js"></script>
		<script type="text/javascript" src="js/ajaxUtil.js"></script>
		<script type="text/javascript" src="js/PurPersonMedicine.js" charset="GBK"></script>
		<style type="text/css">
			.tablelist thead tr th{
				text-align: center;
				font-size:15px;
				
			}
			.tablelist tr td{
				text-align: center;
			}
			input[type=checkbox]{
				position: relative;
				left: 10px;
			}
			
			input[type=button]{
				margin-right: 10px;
			}
		</style>
	</head>
	<body>
		<input type="hidden" name="purperson" value="${purperson.pname}" class="pname"/>
		<div class="place">
	    <span>位置：</span>
		    <ul class="placeul">
			    <li><a href="javascript:void(0)">首页</a></li>
			    <li><a href="javascript:void(0)">药品管理</a></li>
			    <li><a href="javascript:void(0)">药品管理</a></li>
		    </ul>
	    </div>
	    <!-------------------------------添加操作------------------------------------------>
		<div id="topper"  style="text-align: center;">
			<span style="font-size:30px;font-weight: bold;">添加药品</span>
			<table cellpadding="1px" cellspacing="0px" class="tablelist">
				<thead>
					<tr>
						<th width="200px">药名</th>
						<th width="150px">服用方法 </th>
						<th width="100px">功效</th>
						<th width="200px">数量</th>
						<th width="200px">价格</th>
					</tr>
				</thead>
				<tr height="100px">
					<td width="200px">
						<input type="text" name="mname"  id="mname" value=""  style="padding-left: 5px"/>
					</td>
					<td width="50px">
						内服<input type="radio" name="mmode"  value="1" checked="checked"/>
						&nbsp;&nbsp;&nbsp;&nbsp;
						外用<input type="radio" name="mmode"  value="2" />
					</td>
					<td width="50px">
						<textarea rows="5" cols="35" name="mefficacy" id="mefficacy" style="resize: none; padding: 5px;margin-top:10px;"></textarea>
					</td>
					<td width="50px">
						<input type="text" name="mnum" id="mnum" value="" style="width: 100px;padding-left: 5px;margin-right:5px;"/>份
					</td>
					<td width="50px">
						<input type="text" name="mperice" id="mperice" value="" style="width: 60px;padding-left: 5px;margin-right:5px;"/>元/份
					</td>
				</tr>
			</table>
		</div>
		<br>
		<!-------------------------------功能操作------------------------------------------>
		<div id="mainner" align="center">
			<input type="button" class="Insert" style="width:70px;" value="新增药品"/>
			 &nbsp;&nbsp;&nbsp;&nbsp;
			<input type="button" name="" id="" value="删除" style="width:60px;" onclick="chooseDel()"/>
			 &nbsp;&nbsp;&nbsp;&nbsp;
			<input type="button" class="Select" name="" id="" value="获取药品信息"  style="width:100px;" />
			
		</div>
		<br>
		<!-------------------------------修改查看操作------------------------------------------>
		<div id="bottomer" style="height:300px;overflow:scroll; overflow-x:hidden;">
			<table class="tablelist" cellpadding="0px" cellspacing="0px" id="ta" > 
			
			</table>
		</div>
	</body>
</html>
